#pragma once

#include <vector>
#include <string>
#include <float.h>
#include "common.h"
#include "AndNodeModel.h"
#include "LeafNodeModel.h"

using	namespace	std;

class COrNodeModel
{
	public:
		COrNodeModel(void);
		~COrNodeModel(void);

	public:
		int							OrNodeID;								// ID
		
		vector<int>					Children;
		vector<double>				Weights;								// the weight of children
		int							ModelCount;								// the number of children

		vector<int>					MissLeafNode;
		int							MissSource;
		int							Level;

	public:
		int		MakeMissInformation(ModelTreeType &model, int Level);

		int		SaveOrNodeModel(FILE *fpFile);
		int		ReadOrNodeModel(FILE *fpFile);
};